﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class UserControl_ControlStarterKit : System.Web.UI.UserControl
{
    ClassExecute.ClassExecute dt;
    string str = webapp4U.Configuration.CurrentConnectionString;
    string error = "";
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void imgBtnAdd_Click(object sender, ImageClickEventArgs e)
    {

    }
    protected void imgBtnSave_Click(object sender, ImageClickEventArgs e)
    {

    }
    protected void imgBtnDelete_Click(object sender, ImageClickEventArgs e)
    {

    }
    protected void imgBtnFind_Click(object sender, ImageClickEventArgs e)
    {

    }
    protected void txtMaHang_TextChanged(object sender, EventArgs e)
    {
        try
        {
            string Chuoi = txtMaHang.Text;
            int index = Chuoi.IndexOf("|");
            txtMaHang.Text = Chuoi.Substring(0, index - 1);
            txtTenHang.Text = Chuoi.Substring(index + 2, Chuoi.Length - index - 2);
          
        }
        catch
        {
            return;
        }
    }
}